package net.zabuchy.iteration.bo;
 
import java.util.List;
 
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
 
import net.zabuchy.helper.SessionHelper;
import net.zabuchy.iteration.dao.IterationDao;
import net.zabuchy.iteration.entity.Iteration;
 
@Transactional
public class IterationBoImpl implements IterationBo {
 
    private static final Logger LOGGER = Logger.getLogger(IterationBoImpl.class.getName());

    @Autowired
    private IterationDao iterationDao;
    
    @Autowired
    private SessionHelper sessionBean;
    
    
	public void add(Iteration iteration) {
		iterationDao.add(iteration);
	}

	public void update(Iteration iteration) {
		iterationDao.update(iteration);
		
	}

	public void delete(Iteration iteration) {
		iterationDao.delete(iteration);
	}

	public List findAll() {
		return iterationDao.findAll();
	}

	public Iteration findById(int id) {
		return iterationDao.findById(id);
	}
	
	public Iteration findActualIteratio() {
		return iterationDao.findActualIteratio();
	}

	/**
	 * @param sessionBean the sessionBean to set
	 */
	public void setSessionBean(SessionHelper sessionBean) {
		this.sessionBean = sessionBean;
	}

	/**
	 * @return the sessionBean
	 */
	public SessionHelper getSessionBean() {
		return sessionBean;
	}

	public IterationDao getIterationDao() {
		return iterationDao;
	}

	public void setIterationDao(IterationDao iterationDao) {
		this.iterationDao = iterationDao;
	}
 
    
    
}